To export historical data for the MT4 Strategy Tester using LogEverything EA, follow these steps to ensure your data is saved in a format that can be used for backtesting:

 Step 1: Enable Historical Data Export in LogEverything EA
1. Open the LogEverything EA settings on your MT4 platform.
2. Look for the option labeled Export Data for MT4 Strategy Tester (or History Center Export).
3. Set this option to true to enable the export of historical data for backtesting.

 Step 2: Select Data to Be Exported
1. Set the Maximum Data Size: Choose how much data you want to record by setting the Max File Size option, typically in megabytes. This helps control the size of your export file.
2. Choose Specific Indicators: If you want to include specific indicators (e.g., Moving Averages, RSI), enable them in the EA settings. LogEverything will include these along with the price data, giving you a comprehensive dataset.
3. Choose Chart Mode: Decide if you want to record data for a Single Chart or All Open Charts. Select ALL_OPEN_CHARTS if you need data across multiple symbols or timeframes.

 Step 3: Run LogEverything EA
1. Attach LogEverything EA to your desired chart(s) in MT4.
2. Allow it to run and record historical data over the time period you need for your backtesting.

 Step 4: Access and Save the Exported Data
1. Once the EA has recorded sufficient data, open the Files folder in MT4:
   - From the File menu in MT4, select Open Data Folder > MQL4 > Files.
2. Locate the session folder created by LogEverything EA. Inside, you should find a CSV file named For The History Center or similar, containing your exported historical data.

 Step 5: Import Data into the Strategy Tester
1. In the MT4 History Center:
   - Go to Tools > History Center.
   - Choose the symbol you want to import data for, then click Import and select your CSV file from the Files folder.
2. Once imported, the data will be available in the Strategy Tester for your backtesting.

By following these steps, LogEverything EA will help you create a detailed historical dataset that can be used for accurate backtesting in the MT4 Strategy Tester.